export default [
  {
    path: "/admin",
    layout: false,
    routes: [
      {
        path: "/admin",
        redirect: "/admin/login",
      },
      {
        name: "login",
        path: "/admin/login",
        component: "./Admin/Login",
      },
      {
        component: "./404",
      },
    ],
  },
  {
    path: "/receivingGoods",
    name: "书包收货",
    icon: "file",
    component: "./ReceivingGoods",
    access: "PAGE_BANNER",
  },
  {
    path: "/sendGoods",
    name: "书包发货",
    icon: "file",
    component: "./SendGoods",
    access: "PAGE_BANNER",
  },

  {
    path: "/package",
    name: "书包管理",
    icon: "file",
    access: "PAGE_BANNER",
    routes: [
      {
        path: "/package/index/edit",
        name: "书包管理",
        icon: "file",
        component: "./Package/edit",
        access: "PAGE_BANNER",
        hideInMenu: true,
      },
      {
        path: "/package/index",
        name: "书包管理",
        icon: "file",
        component: "./Package",
        access: "PAGE_BANNER",
      },
      {
        path: "/package/book",
        name: "书包书籍管理",
        icon: "file",
        component: "./Package/book",
        access: "PAGE_BANNER",
      },
      {
        path: "/package/index/group/addPackage",
        name: "新增书包",
        icon: "file",
        component: "./Package/addPackage",
        access: "PAGE_BANNER",
        hideInMenu: true,
      },
      {
        path: "/package/index/group",
        name: "分组管理",
        icon: "file",
        component: "./Package/group",
        access: "PAGE_BANNER",
        hideInMenu: true,
      },
      {
        path: "/package/index/specification/edit",
        name: "编辑规格",
        icon: "file",
        component: "./Package/specificationEdit",
        access: "PAGE_BANNER",
        hideInMenu: true,
      },
      {
        path: "/package/index/specification",
        name: "规格管理",
        icon: "file",
        component: "./Package/specification",
        access: "PAGE_BANNER",
        hideInMenu: true,
      },
    ],
  },

  {
    path: "/book",
    name: "书籍管理",
    icon: "file",
    access: "PAGE_BANNER",
    routes: [
      {
        name: "分类管理",
        path: "/book/category",
        component: "./Book/category",
      },
      {
        name: "新增/编辑书籍",
        path: "/book/index/edit",
        component: "./Book/edit",
        hideInMenu: true,
      },
      {
        name: "书籍列表",
        path: "/book/index",
        component: "./Book/index",
      },
    ],
  },
  {
    path: "/per",
    name: "周边管理",
    icon: "file",
    access: "PAGE_BANNER",
    routes: [
      {
        name: "新增/编辑周边",
        path: "/per/index/edit",
        component: "./Per/edit",
        hideInMenu: true,
      },
      {
        name: "周边列表",
        path: "/per/index",
        component: "./Per/index",
      },
    ],
  },
  {
    path: "/mall",
    name: "积分商城",
    icon: "file",
    component: "./Mall",
    access: "PAGE_BANNER",
  },
  {
    path: "/freeTemplate/edit",
    name: "新增/编辑运费模板",
    icon: "file",
    component: "./FreeTemplate/edit",
    access: "PAGE_BANNER",
    hideInMenu: true,
  },
  {
    path: "/freeTemplate",
    name: "运费模板",
    icon: "file",
    component: "./FreeTemplate",
    access: "PAGE_BANNER",
  },
  {
    path: "/user",
    name: "用户管理",
    icon: "user",
    component: "./User",
    access: "PAGE_BANNER",
  },

  {
    path: "/agreement/edit",
    name: "协议管理",
    icon: "file",
    component: "./Agreement/edit",
    access: "PAGE_BANNER",
    hideInMenu: true,
  },
  {
    path: "/agreement",
    name: "协议管理",
    icon: "file",
    component: "./Agreement",
    access: "PAGE_BANNER",
  },
  {
    path: "/marketing",
    name: "营销管理",
    icon: "file",
    access: "PAGE_BANNER",
    routes: [
      {
        path: "/marketing/banner",
        name: "轮播图管理",
        icon: "file",
        component: "./Marketing/Banner",
        access: "PAGE_BANNER",
      },
      {
        path: "/marketing/teacher",
        name: "星辅育",
        icon: "file",
        component: "./Marketing/Teacher",
        access: "PAGE_BANNER",
      },
      {
        path: "/marketing/health",
        name: "星健康",
        icon: "file",
        component: "./Marketing/Health",
        access: "PAGE_BANNER",
      },
      // {
      //   path: "/marketing/travel",
      //   name: "星文旅",
      //   icon: "file",
      //   component: "./Marketing/Travel",
      //   access: "PAGE_BANNER",
      // },
      {
        path: "/marketing/paint",
        name: "星悦会",
        icon: "file",
        component: "./Marketing/Paint",
        access: "PAGE_BANNER",
      },
      {
        path: "/marketing/depost",
        name: "押金设置",
        icon: "file",
        component: "./Marketing/depost",
        access: "PAGE_BANNER",
      },
      {
        path: "/marketing/companyAddress",
        name: "公司地址管理",
        icon: "file",
        component: "./Marketing/companyAddress",
        access: "PAGE_BANNER",
      },
    ],
  },

  {
    path: "/order",
    name: "订单管理",
    icon: "file",
    access: "PAGE_BANNER",
    routes: [
      {
        path: "/order/package/detail",
        name: "订单详情",
        icon: "file",
        component: "./Order/package/detail",
        access: "PAGE_BANNER",
        hideInMenu: true,
      },
      {
        path: "/order/package",
        name: "书包订单",
        icon: "file",
        component: "./Order/package",
        access: "PAGE_BANNER",
      },
      {
        path: "/order/mall/detail",
        name: "订单详情",
        icon: "file",
        component: "./Order/mall/detail",
        access: "PAGE_BANNER",
        hideInMenu: true,
      },
      {
        path: "/order/mall",
        name: "商城订单",
        icon: "file",
        component: "./Order/mall",
        access: "PAGE_BANNER",
      },
      {
        path: "/order/other",
        name: "其他订单",
        icon: "file",
        access: "PAGE_BANNER",
        routes: [
          {
            path: "/order/other/teacher",
            name: "老师订单",
            icon: "file",
            component: "./Order/other/teacher",
            access: "PAGE_BANNER",
          },
          {
            path: "/order/other/guard",
            name: "智能穿戴",
            icon: "file",
            component: "./Order/other/guard",
            access: "PAGE_BANNER",
          },

          {
            path: "/order/other/test",
            name: "测评订单",
            icon: "file",
            component: "./Order/other/test",
            access: "PAGE_BANNER",
          },
          {
            path: "/order/other/cert",
            name: "证书订单",
            icon: "file",
            component: "./Order/other/cert",
            access: "PAGE_BANNER",
          },
          {
            path: "/order/other/trip",
            name: "星文旅",
            icon: "file",
            component: "./Order/other/trip",
            access: "PAGE_BANNER",
          },
        ],
      },
      {
        path: "/order/refunds",
        name: "售后订单",
        icon: "file",
        component: "./Order/refunds",
        access: "PAGE_BANNER",
      },
    ],
  },

  {
    path: "/proxy",
    name: "代理商管理",
    icon: "file",
    access: "PAGE_BANNER",
    routes: [
      {
        path: "/proxy/audit",
        name: "代理商审核",
        icon: "file",
        component: "./Proxy/audit",
        access: "PAGE_BANNER",
      },
      {
        path: "/proxy/list",
        name: "代理商列表",
        icon: "file",
        component: "./Proxy/list",
        access: "PAGE_BANNER",
      },
      {
        path: "/proxy/ratio",
        name: "佣金比例设置",
        icon: "file",
        component: "./Proxy/ratio",
        access: "PAGE_BANNER",
      },
    ],
  },
  // {
  //   path: "/openVip",
  //   name: "开通会员",
  //   icon: "file",
  //   component: "./OpenVip",
  //   access: "PAGE_BANNER",
  // },
  {
    path: "/vip",
    name: "VIP管理",
    icon: "file",
    component: "./Vip",
    access: "PAGE_BANNER",
  },
  {
    path: "/freeDeliverySet",
    name: "包邮管理",
    icon: "file",
    component: "./FreeDeliverySet",
    access: "PAGE_BANNER",
  },
  {
    path: "/readRecord",
    name: "阅读记录",
    icon: "file",
    component: "./ReadRecord",
    access: "PAGE_BANNER",
  },
  {
    path: "/",
    redirect: "/package/index",
  },
  {
    component: "./404",
  },
];
